package org.kiwi.util.log.support;

/**
 * @email jack.liu.19910921@gmail.com
 * Created by jack on 17/6/7.
 */
public class EnhancedLoggerManager {

    private static final ThreadLocal<String> PREFIX_HOLDER = new ThreadLocal<String>();

    private static final ThreadLocal<String> SUFFIX_HOLDER = new ThreadLocal<String>();

    public static void setPrefix(String prefix) {
        PREFIX_HOLDER.set(prefix);
    }

    public static String getPrefix() {
        return PREFIX_HOLDER.get();
    }

    public static void setSuffix(String suffix) {
        SUFFIX_HOLDER.set(suffix);
    }

    public static String getSuffix() {
        return SUFFIX_HOLDER.get();
    }

    public static void clear() {
        PREFIX_HOLDER.set(null);
        SUFFIX_HOLDER.set(null);
    }

}
